<?php

class ResidentController extends Zend_Controller_Action
{

    public function init()
    {
        $this->auth=  Zend_Auth::getInstance();
      if(!$this->auth->hasIdentity() && $this->auth->getStorage()->read()->RESIDENT !="Y"){
             $this->_redirect('index');
      }else{
          $_SESSION['role']='R';
      }
    }

    public function indexAction()
    {
       $this->view->title="Resident - Welcome to Rosemoore Lake";
    }


}

